#pragma once

/*
* Shape is the actuall renderable part of a scene node
* If a shape isn't provided then the node does not get rendered
*/

//#include <string>
//using namespace std;

#include "DirectXEngine.h"


struct CUSTOMVERTEX {FLOAT X, Y, Z; D3DVECTOR NORMAL; DWORD COLOR;};
#define CUSTOMFVF (D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE)

class Shape
{
public:
	Shape();
	//Shape( string source );
public:
	virtual ~Shape(void);

	virtual void Draw();

protected:
	CDirectXEngine * dxEngine;

	LPDIRECT3DVERTEXBUFFER9 vertexBuffer;    // the pointer to the vertex buffer
	LPD3DXMESH mesh;
	D3DMATERIAL9 material; 
};
